#!/bin/bash
service nginx start

chmod +x /data/entrypoint.sh
sh -c "cd /data/; java \
  -Xms2048m \
  -Xmx4096m \
  -Xlog:gc*=info:file=./log/gc%t.log:utctime,level,tags:filecount=50,filesize=100M \
  -XX:+ExitOnOutOfMemoryError \
  -XX:+PrintGCDetails \
  -XX:+HeapDumpOnOutOfMemoryError \
  -XX:HeapDumpPath=/tmp/heapdump-data-engine.hprof \
  -Dfile.encoding=UTF-8 \
  -jar data-integration-engine-start-1.0.0-SNAPSHOT.jar"
